/**
 * 
 */
package com.changil.admin.dto;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @author skplanet
 *
 */
public class AttachmentImage extends BeanBase {
	public String id;
	public String url;

	public AttachmentImage() {
		
	}
	
	public AttachmentImage(JSONObject rawData) {
		this();
		create(rawData);
	}
	
	
	@Override
	public void create(JSONObject data) {
		try {
			if ( !data.isNull("id")){
				id = data.getString("id");				
			}
			
			if( !data.isNull("url")) {
				url = data.getString("url");
			}
		} catch(JSONException e) {
			handleException(e);
		}
	}

}
